package com.ctgu.expresshelper.service.Order.impl;

import com.ctgu.expresshelper.dao.OrderDao;
import com.ctgu.expresshelper.entity.Order;
import com.ctgu.expresshelper.service.Order.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service

public class OrderServiceimpl implements OrderService {
    @Autowired
    OrderDao orderDao;

    @Override
    public void addOrder(Order order) {
        orderDao.addOrder(order);
    }

    @Override
    public void deleteOrder(long id) {
        orderDao.deleteOrder(id);
    }

    @Override
    public List<Order> findAll(long userid) {
        return orderDao.findAll(userid);
    }

    @Override
    public List<Order> findPart(long userid) {
        return orderDao.findPart(userid);
    }
}
